
import request from "@/utils/request";
/* 运费模板列表 */
export function freightTemplateList(query) {
    return request({
        url: "/cms-shop/api/freight-template/list",
        method: "get",
        params: query,
    });
}
/* 商戶运费模板详情 */
export function freightTemplateDetail(id) {
    return request({
        url: `/cms-shop/api/freight-template/${id}`,
        method: "get",
    });
}

/* 商戶运费模板新增 */
export function freightTemplateAdd(data) {
    return request({
        url: "/cms-shop/api/freight-template",
        method: "post",
        data,
    });
}
/* 商戶运费模板更新 */
export function freightTemplateUpdate(data) {
    return request({
        url: "/cms-shop/api/freight-template",
        method: "put",
        data,
    });
}

/* export */
export function freightTemplateExport(data) {
    return request({
        url: "/cms-shop/api/freight-template/export",
        method: "post",
        data,
    });
}
/* delete */
export function freightTemplateDelete(id) {
    // console.log(id)
    return request({
        url: `/cms-shop/api/freight-template/${id}`,
        method: "delete",
    });
}